package com.tuo51.childcare.domain.ptest;

import com.tuo51.foudation.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 用来记录用户的答题信息
 */

@Entity
@Table(name = "user_ptest_ext")
@EqualsAndHashCode(callSuper = true)
@Data
public class PTestStaffExt extends Domain {

    @Column(columnDefinition = "varchar(32) COMMENT '用户id'", unique = true)
    private String uid;

    @Column(columnDefinition = "datetime COMMENT '最后测试时间'")
    private Date updated = new Date();

    @Column(columnDefinition = "INT COMMENT '总测试题目'")
    private Integer count = 0;

    @Column(columnDefinition = "INT COMMENT '最多连续数量'")
    private Integer continuousCount;

    @Column(columnDefinition = "INT COMMENT '答对的数量'")
    private Integer goat = 0;
}
